package actions;

import java.util.Map;

import org.apache.struts2.convention.annotation.Action;

import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

@Action(value = "/CargarRegistrarse")
@Result(location = "/jsp/principal/frontend.jsp", name = "SUCCESS")
public class CargarRegistrarseAction extends ActionSupport implements SessionAware{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private Map<String, Object> session;
	
	public String execute() {
		
		
		session=ActionContext.getContext().getSession();
		session.put("contenido", "/jsp/registracion/registrarse.jsp");
		
		return "SUCCESS";
	}

	
	@Override
	public void setSession(Map<String, Object> arg0) {
		// TODO Auto-generated method stub
		
	}

}
